package org.bitejiuyeke.lesson01;

public class Demo04_create {
    public static void main(String[] args) {
        Thread thread=new Thread(){
            public  void  run(){
                try {
                    Thread.sleep(1000);
                } catch (InterruptedException e) {
                    throw new RuntimeException(e);
                }
                System.out.println(4444);
            }
        };
        Thread thread1=new Thread(new Runnable() {
            @Override
            public void run() {
                try {
                    Thread.sleep(1000);
                } catch (InterruptedException e) {
                    throw new RuntimeException(e);
                }
                System.out.println(5555);
            }
        });
        Thread thread2=new Thread(()-> {
                try {
                    Thread.sleep(1000);
                } catch (InterruptedException e) {
                    throw new RuntimeException(e);
                }
                System.out.println(66666);
        });

        thread.start();
        thread1.start();
        thread2.start();

    }


}
